package com.cli.spring_session_demo.error;

/**
 * Created by work on 2017/5/31.
 * http response error code enumeration
 */
public enum ErrorCode {
    MY_EXCEPTION("00001","自定义测试异常");


    private String errorCode;
    private String description;

    ErrorCode(String errorCode, String description) {
        this.errorCode = errorCode;
        this.description = description;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "ErrorCode{" +
                "errorCode='" + errorCode + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}
